//
//  MyAdv.m
//  个人信息拼接
//
//  Created by lanou on 15/12/25.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "MyAdv.h"

@implementation MyAdv


- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.iconView = [[UIImageView alloc]initWithFrame:CGRectMake(kWidth/2 - kWidth / 4 / 2, kWidth/15, kWidth/ 4, kWidth/4)];
        self.iconView.image = [UIImage imageNamed:@"main"];
        
        self.iconView.layer.masksToBounds = YES;
        //边角颜色
        //        self.iconView.layer.borderColor = [kBackGroundColor CGColor];
        //        self.iconView.layer.borderWidth = 2.0;
        self.iconView.layer.cornerRadius = 15;
        
        [self addSubview:self.iconView];
        
        self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, kWidth / 13 + kWidth / 4, kWidth, 30)];
        self.nameLabel.text = @"车友管家  V1.0.0";
        self.nameLabel.textAlignment = NSTextAlignmentCenter;
        self.nameLabel.font = [UIFont boldSystemFontOfSize:15];
        self.nameLabel.textColor = [UIColor darkGrayColor];
        [self addSubview:self.nameLabel];
        
        //        self.VERLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, kHeight/4.76, kWidth, 20)];
        //        self.VERLabel.textAlignment = NSTextAlignmentCenter;
        //        self.VERLabel.font = [UIFont systemFontOfSize:13];
        //        self.VERLabel.textColor = [UIColor darkGrayColor];
        //        self.VERLabel.text = @"V1.0.0";
        
        self.VERLabel.numberOfLines = 0;
        
        [self addSubview:self.VERLabel];
        
        self.wuxiaominView = [[UIImageView alloc]initWithFrame:CGRectMake(kWidth / 40, kHeight / 3.7, kWidth - kWidth / 20, kWidth/3.125)];
        self.wuxiaominView.image = [UIImage imageNamed:@"wuxiaomin"];
        [self addSubview:self.wuxiaominView];
        
        
        self.wangtaoView = [[UIImageView alloc]initWithFrame:CGRectMake(kWidth / 40, kHeight/ 2.15, kWidth - kWidth / 20, kWidth/3.125)];
        self.wangtaoView.image = [UIImage imageNamed:@"wangtao"];
        [self addSubview:self.wangtaoView];
        
        self.xuminView = [[UIImageView alloc]initWithFrame:CGRectMake(kWidth / 40, kHeight / 1.5, kWidth - kWidth / 20, kWidth/3.125)];
        self.xuminView.image = [UIImage imageNamed:@"xumin"];
        [self addSubview:self.xuminView];
        
        
        
    }
    return self;
}





/*
 // Only override drawRect: if you perform custom drawing.
 // An empty implementation adversely affects performance during animation.
 - (void)drawRect:(CGRect)rect {
 // Drawing code
 }
 */

@end
